package top.blackr.folivora.common.security.crud.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = true)
public class SysRole extends Model<SysRole> {

    @Serial
    private static final long serialVersionUID = -8349500575446936731L;

    @TableId
    private Integer roleId;
    @Schema(description = "角色名称")
    private String roleName;
    @Schema(description = "角色编码")
    private String roleCode;
    @Schema(description = "角色备注")
    private String roleDesc;
    @Schema(description = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @Schema(description = "删除标记：1删除；0未删除")
    @TableField(value = "del_flag",fill = FieldFill.INSERT)
    private String delFlag;

}
